build: Fix the non-pkg-config Vulkan detection
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 5 Feb 2018 14:35:34 +0000 (14:35 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 5 Feb 2018 14:35:34 +0000 (14:35 +0000)
Not all the variables were renamed.

meson.build

index d7e7a72bdef6259fc170c01928cf7e1b2b7ca13e..3c7972d87a3d0277903499abff70aae178da3617 100644 (file)
@@ -568,7 +568,7 @@ else
       vulkan_libname = 'vulkan'
     endif
     vulkan_dep = cc.find_library(vulkan_libname, required: false)
-    if vulkan_lib.found() and cc.has_function('vkCreateInstance', dependencies: vulkan_lib) and cc.has_header('vulkan/vulkan.h')
+    if vulkan_dep.found() and cc.has_function('vkCreateInstance', dependencies: vulkan_dep) and cc.has_header('vulkan/vulkan.h')
       have_vulkan = true
       pc_gdk_extra_libs += ['-l@0@'.format(vulkan_libname)]
     endif